package com.sk.seckilldemo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品实体类
 * */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductInfo {
    private Integer goods_id;
    private String goods_name;
    private String goods_images; // 存储JSON格式的图片列表
    private Integer class_id;
    private String goods_params; // 存储JSON格式的规格参数
    private BigDecimal seckill_price;
    private BigDecimal original_price;
    private String description;
    private LocalDateTime start_time;
    private LocalDateTime end_time;
    private Integer stock;
    private Integer sold_count;
    private String goods_brief; // 简单描述
    private Integer goods_status; // 商品状态：0下架 1上架
    private LocalDateTime create_time;
    private LocalDateTime update_time;
}
